package com.tech.zhidengxian.model.dataobject;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tech.zhidengxian.mapper.typehandler.JsonTypeHandler;
import lombok.Data;
import org.apache.logging.log4j.message.Message;

import java.util.Date;

@Data
@TableName(value = "zdx_chat",autoResultMap = true)
public class ChatDO {
  @TableId(value = "id",type = IdType.AUTO)
  private Long id;
  private String name;
  @TableField(typeHandler = JsonTypeHandler.class)
  private UserDO creatorInfo;
  @TableField(typeHandler = JsonTypeHandler.class)
  private UserDO receiverInfo;

  private Long creatorId;
  private Long receiverId;
  @TableField(typeHandler = JsonTypeHandler.class)
  private MessageDO lastMessage;
  @TableField(typeHandler = JsonTypeHandler.class)
  private GoodsDO goodsInfo;
  private Date updateTime;
  private Date createTime;
  private Boolean isDeleted;
  private Long gid;



}
